import { post } from '@/utils/request'
import request from '@/utils/request'

/**
 * 通过问题ID获取详细信息
 * @param quId
 * @returns {*}
 */
export function getByQuIdCollectDetail(quId) {
  return request({
    url: '/collect/detail-qu-id/' + quId,
    method: 'get'
  })
}

export function saveCollectData(data) {
  return request({
    url: '/collect/save',
    method: 'post',
    data
  })
}

/**
 * 取消收藏题目
 * @param quId
 * @returns {*}
 */
export function removeCollect(quId) {
  return request({
    url: '/collect/delete/' + quId,
    method: 'delete'
  })
}
